package com.maybach.common.enums.user;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by zhaoshuai on 16/1/15.
 */
public enum UserApplyFlowBizType {

    persion("persion"),
    enterprise("enterprise");

    private String typeValue;

    UserApplyFlowBizType(String typeValue) {
        this.typeValue = typeValue;
    }

    public String getTypeValue() {
        return typeValue;
    }

    public static List<String> getAllStatusValues() {
        List<String> statusValues = new ArrayList<>();
        for (UserApplyFlowBizType type : UserApplyFlowBizType.values()) {
            statusValues.add(type.getTypeValue());
        }
        return statusValues;
    }

    public static boolean isRightStatusValue(String value) {
        return getAllStatusValues().contains(value);
    }
}
